.PHONY: start build

NOW = $(shell date -u '+%Y%m%d%I%M%S')

RELEASE_VERSION = v8.0.0

APP 			= gin-admin-cli
RELEASE_ROOT 	= release
RELEASE_SERVER 	= release/${APP}
GIT_COUNT 		= $(shell git rev-list --all --count)
GIT_HASH        = $(shell git rev-parse --short HEAD)
RELEASE_TAG     = $(RELEASE_VERSION).$(GIT_COUNT).$(GIT_HASH)

build_test: 
	@go build -ldflags "-w -s -X main.VERSION=$(RELEASE_TAG)" -o ../$(APP)_cmd ./main.go

build:
	@go build -ldflags "-w -s -X main.VERSION=$(RELEASE_TAG)" -o ./${APP} ./main.go
